<html>
<META http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<head>
<title>Exercises</title>
<link rel="STYLESHEET" type="text/css" href="images/style.css">
<link rel="STYLESHEET" type="text/css" href="images/docsafari.css">
</head>
<body>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr><td><div STYLE="MARGIN-LEFT: 0.15in;"><a href="toc.html"><img src="images/team.gif" width="60" height="17" border="0" align="absmiddle"  alt="Team BBL"></a></div></td>
<td align="right"><div STYLE="MARGIN-LEFT: 0.15in;">
<a href=ch18lev1sec14.html><img src="images/prev.gif" width="60" height="17" border="0" align="absmiddle" alt="Previous Page"></a>
<a href=ch19.html><img src="images/next.gif" width="60" height="17" border="0" align="absmiddle" alt="Next Page"></a>
</div></td></tr></table>
<br><table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td valign="top"><a name="ch18lev1sec15"></a>
<h3 class="docSection1Title">Exercises</h3>
<P><table border="0" cellspacing="16" cellpadding="0"><TR valign="top"><td align="right" class="docText" width="50"><a name="ch18qa1q1"></a><B><a class="docLink" href="app03lev1sec18.html#ch18qa1q1a1">18.1</a></b></TD><TD><p class="docText">Write a program that calls <tt>tty_raw</tt> and terminates (without resetting the terminal mode). If your system provides the <tt>reset</tt>(1) command (all four systems described in this text do), use it to restore the terminal mode.</p></TD></TR><TR valign="top"><td align="right" class="docText" width="50"><a name="ch18qa1q2"></a><B><a class="docLink" href="app03lev1sec18.html#ch18qa1q2a2">18.2</a></b></td><TD><p class="docText">The <tt>PARODD</tt> flag in the <tt>c_cflag</tt> field allows us to specify even or odd parity. The BSD <tt>tip</tt> program, however, also allows the parity bit to be 0 or 1. How does it do this?</P></TD></tr><TR valign="top"><TD align="right" class="docText" width="50"><a name="ch18qa1q3"></a><b><a class="docLink" href="app03lev1sec18.html#ch18qa1q3a3">18.3</a></b></TD><TD><p class="docText">If your system's <tt>stty</tt>(1) command outputs the MIN and TIME values, do the following exercise. Log in to the system twice and start the <tt>vi</tt> editor from one login. Use the <tt>stty</tt> command from your other login to determine what values <tt>vi</tt> sets MIN and TIME to (since <tt>vi</tt> sets the terminal to noncanonical mode). (If you are running a windowing system on your terminal, you can do this same test by logging in once and using two separate windows instead.)</p></td></tr></table></p>

<UL></ul></TD></tr></table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr><td><div STYLE="MARGIN-LEFT: 0.15in;"><a href="toc.html"><img src="images/team.gif" width="60" height="17" border="0" align="absmiddle"  alt="Team BBL"></a></div></td>
<td align="right"><div STYLE="MARGIN-LEFT: 0.15in;">
<a href=ch18lev1sec14.html><img src="images/prev.gif" width="60" height="17" border="0" align="absmiddle" alt="Previous Page"></a>
<a href=ch19.html><img src="images/next.gif" width="60" height="17" border="0" align="absmiddle" alt="Next Page"></a>
</div></td></tr></table>
</body></html><br>
<table width="100%" cellspacing="0" cellpadding="0"
style="margin-top: 0pt; border-collapse: collapse;"> 
<tr> <td align="right" style="background-color=white; border-top: 1px solid gray;"> 
<a href="http://www.zipghost.com/" target="_blank" style="font-family: Tahoma, Verdana;
 font-size: 11px; text-decoration: none;">The CHM file was converted to HTM by Trial version of <b>ChmD<!--18-->ecompiler</b>.</a>
</TD>
</TR><tr>
<td align="right" style="background-color=white; "> 
<a href="http://www.etextwizard.com/download/cd/cdsetup.exe" target="_blank" style="font-family: Tahoma, Verdana;
 font-size: 11px; text-decoration: none;">Download <b>ChmDec<!--18-->ompiler</b> at: http://www.zipghost.com</a>
</TD></tr></table>
